package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.SenateDepartProjects;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-17
 */
public interface SenateDepartProjectsMapper extends BaseMapper<SenateDepartProjects> {

    @Select("select GROUP_CONCAT(projects_id) as projects_id from senate_depart_projects where senate_depart_id = ${senateDepartId}")
    public String getProjectsIdStr(@Param("senateDepartId") String senateDepartId);

}
